let str = 'whkl我很快乐'
let buf = Buffer.from(str)
console.log(buf) // <Buffer 77 68 6b 6c e6 88 91 e5 be 88 e5 bf ab e4 b9 90>
console.log(buf.toString()) //whkl我很快乐